<template>
  <div class="mask" v-show="isShow">
    <!-- <div class="loading"></div> -->
    <van-loading type="spinner" color="tomato" />
  </div>
</template>

<script>
import Vue from 'vue'
import { Loading } from 'vant'
Vue.use(Loading)

export default {
  data () {
    return {
      isShow: false
    }
  }
}
</script>

<style lang="scss" scoped>
@keyframes rotate {
  0%{
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.mask{
  position: fixed;
  left: 0;
  right: 0;
  top:0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading{
  width: 40px;
  height: 40px;
  border: 8px solid tomato;
  border-radius: 28px;
  border-left-color: transparent;
  animation: rotate 1s infinite;
}
</style>
